#include <cstdio>
#include <algorithm>
using namespace std;
int main(void){
    int a,b;
    while(~scanf("%d%d",&a,&b)){
        printf("%d\n",a/__gcd(a,b)*b);
    }
    return 0;
}